﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using QLNS.Class;
using QLNS.HeThong;
namespace QLNS
{
 
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DB cn = new DB();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (cn.KetNoi()) 
            {
                HangSo.DaKetNoiCSDL = true;
                Application.Run(new Main());
            }
            else
            {
                frmCauHinh frmcauhinh = new frmCauHinh();
                frmcauhinh.ShowDialog();
                if (HangSo.DaKetNoiCSDL == true)
                {
                    Application.Run(new Main());
                }
            }
        }
    }
}
